package member.service;

import member.domain.Member;

//Business Logic을 처리하는 메소드.
public class MemberService {
	//싱글톤 패턴 처리
	private static MemberService instance = null;
	
	private MemberService(){}
	
	public static MemberService getInstance(){
		if(instance==null){
			instance = new MemberService();
		}
		return instance;
	}
	//id로 회원정보 조회
	public Member searchMemberById(String id){
		System.out.println("회원정보 조회 비지니스 로직 처리");
		return new Member(id, "1111", "박철수", "park@abc.com", 20000);
	}
}
